package com.glorysoft.xztpda.bindingadapter

import android.graphics.Color
import android.provider.CalendarContract
import android.text.Editable
import android.text.TextWatcher
import android.widget.EditText
import android.widget.LinearLayout
import androidx.databinding.BindingAdapter
import com.glorysoft.xztpda.entity.EdcDataEDCSETLISTEDCSETBINLINELIST
import com.glorysoft.xztpda.entity.LotBinData
import com.glorysoft.xztpda.entity.MosEntity
import java.lang.NumberFormatException
import java.text.NumberFormat

/**
 * FileName: NumEditextAdapter
 * Author: XJH
 * Date: 2022/4/28 18:34
 * Description:
 * History:
 */
object CheckBinBgAdapter {

    @BindingAdapter(value = ["setCheckBinBg"], requireAll = false)
    @JvmStatic
    fun setCheckBinBg(linearLayout: LinearLayout, item: LotBinData) {
        if (item.sel) {
            linearLayout.setBackgroundColor(Color.rgb(248,203,183))
        }else{
            linearLayout.setBackgroundColor(Color.WHITE)
        }
    }
}